import { request } from '@boeyo/portal';

//告警列表
export const getAlarmList = (params) => {
  return request({
    url: 'alarmList/list',
    method: 'GET',
    params,
  });
};

/**
 * 告警详情查询
 * @param params
 * @returns
 */
export const getAlarmRuleDetail = (params) => {
  return request({
    url: 'alarmList/queryById/{id}',
    method: 'GET',
    params,
  });
};
//处理：是否误报
export const handleAlarm = (data) => {
  return request({
    url: 'alarmList/handleUpdate',
    method: 'PUT',
    data,
  });
};

/**
 * 通知组下拉选择 通知组下拉选择
 * @ss.hasPermi('roleGroup:selectList')
 */
export const getRoleGroupSelectList = (params?: any) => {
  return request({
    url: 'roleGroup/selectList',
    method: 'GET',
    params,
  });
};
